package com.it.travel.controller;

import com.it.travel.service.OrderService;
import com.it.travel.vo.Params.OrderParams;
import com.it.travel.vo.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/order")
@CrossOrigin
public class OrderController {
    @Resource
    private OrderService orderService;

    @PutMapping("")
    public Result<?> update(@RequestBody OrderParams orderParams) {
        Result<?> result = orderService.update(orderParams);
        return result;
//        System.out.println("orderParams = " + orderParams);
//        return null;
    }
}
